extends "../cTDM_5_1/cTDM_5_1.gd"
func _info():
	pass

func _connect():
	._connect()
var baseId = ""
func _extInit():
	._extInit()
	lv = 4
	attCoe.atk *=1.5
	attCoe.maxHp *= 1.6
	addCdSkill("slss",15)
	addSkillTxt("骷髅引爆：引爆随机1个骷髅召唤物，对骷髅召唤物范围1格内的敌人造成720点真伤[cd:15秒]")

func _castCdSkill(id):
	._castCdSkill(id)
	if id == "slss":
		var chas = getAllChas(2)
		var waitrnd = [] 
		for i in chas:
			if i.id.find("skull") != -1:
				waitrnd.append(i)
		if !waitrnd.size():return
		cst("骷髅引爆","000000",position)
		var i = sys.rndListItem(waitrnd)
		var chas2 = i.getCellChas(i.cell,1)
		i.hurtChara(i,att.maxHp*2,Chara.HurtType.REAL,Chara.AtkType.EFF)
		for j in chas2:
			if !j:continue
			hurtChara(j,720,Chara.HurtType.REAL,Chara.AtkType.EFF)
